#include <algorithm>
#include <iostream>
#include <string>
#include <ctime>

#include "Game.h"
#include "Input.h"
#include "GameObjectManager.h"
#include "Spawner.h"

using namespace std;

int main(int argc, char **argv) 
{
	srand(static_cast<unsigned int>(time(0)));

	// The names of the players
	string playerName1, playerName2;
	cout << "Name of Player 1: " ;
	cin >> playerName1;
	cout << "Name of Player 2: " ;
	cin >> playerName2;

	// Create and initialize the game
	if (Game::getInstance()->init(argc,argv, playerName1, playerName2))
	{
		// Play the game
		Game::getInstance()->playGame();
	}

	Game::destroyInstance();

	return 0;
}